<%= locals = {:resource  => @service,
              :content   => 'service_details_content',
              :remote    => false,
              :read_only => !has_cloud_services?(@cloud.ciId)}
    if @service.new_record?
      locals[:form_url] = @zone ? cloud_zone_services_path(@cloud, @zone) : cloud_services_path(@cloud)
    else
      if @zone
        locals[:form_url]    = cloud_zone_service_path(@cloud, @zone, @service)
        locals[:destroy_url] = cloud_zone_service_path(@cloud, @zone, @service)
      else
        locals[:form_url]    = cloud_service_path(@cloud, @service)
        locals[:destroy_url] = cloud_service_path(@cloud, @service)
      end
    end
    locals[:cancel_url] = @zone ? path_to_ci(@zone) : edit_cloud_path(@cloud)
    render 'base/shared/edit_form', locals %>
